package com.twu.biblioteca;

public class Movie {
    private String name;
    private String year;
    private String director;
    private String rating;

    public Movie(String name, String year, String director, String rating) {
        this.name = name;
        this.year = year;
        this.director = director;
        this.rating=rating;
    }

    public Movie(String name, String year, String director) {
        this.name = name;
        this.year = year;
        this.director = director;
        this.rating = "N/A";
    }

    public String getMovieInfo() {
        return name + " " + year + " " + director + " " + rating;
    }

}
